const fn = () => (new Promise((resolve, reject) => {
    console.log(1);
    resolve('success')
}))

fn().then(res => {
    console.log(res);
})

console.log('start');

// 1
// 'start'
// 'success'